package com.wanxi.string;

import java.util.Scanner;

public class TelphoneNumberShield {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一串字符串（一段话）： ");
        String telphoneNumber = scanner.next();

        String num1 = telphoneNumber.substring(0,3);//字符串截取，从索引为0开始，但不包括索引为3的内容
        String num2=telphoneNumber.substring(7);

        System.out.println(num1+"****"+num2);




    }



}
